<?php

declare(strict_types=1);

namespace App\Request\Client\Certification;


use Hyperf\Validation\Request\FormRequest;

class IdcardRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'idcard' => 'required|min:15|max:18',
            'name' => 'required|min:2|max:30'
        ];
    }

}